/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.com.cliente.empresa.estructura;

import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.fields.DataSourceTextField;

/**
 *
 * @author dloaiza
 */
public class EmpresaDS extends DataSource {

    public static final String DSNIT = "dsNit";
    public static final String DSRAZONSOCIAL = "dsRazonSocial";
    public static final String DSDIRECCION = "dsDireccion";
    public static final String DSIDCONTACTO = "dsidContacto";
    public EmpresaDS()
    {
        DataSourceTextField dsNitDSField = new DataSourceTextField(DSNIT, "dsNit");
        DataSourceTextField dsRazonSocialDSField = new DataSourceTextField(DSRAZONSOCIAL, "dsRazonSocial");
        DataSourceTextField dsDireccionDSField = new DataSourceTextField(DSDIRECCION, "dsDireccion");
        DataSourceTextField dsidContactoDSField = new DataSourceTextField(DSIDCONTACTO, "dsidContacto");

        dsNitDSField.setPrimaryKey(true);
        setFields(dsNitDSField, dsRazonSocialDSField, dsDireccionDSField, dsidContactoDSField);
        setClientOnly(true);
    }
}